package com.xjrsoft.module.customer.erp_model.eRP_Turnover.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xjrsoft.core.tool.utils.StringUtil;
import lombok.Data;
import io.swagger.annotations.ApiModel;

/**
 * 视图实体类
 *
 * @author pp
 * @since 2021-11-10
 */
@Data
@ApiModel(value = "列表ErpStockinventoryVo对象", description = "列表ErpStockinventoryVo对象")
public class ErpStockinventoryListVo {
    @JsonProperty("F_Id")
    private String fId;

    @JsonProperty("F_Description")
    private String fDescription;

    @JsonProperty("F_InventoryCode")
    private String fInventorycode;

    @JsonProperty("F_InventoryDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime fInventorydate;

    @JsonProperty("F_Manager")
    private String fManager;

    @JsonProperty("F_WareHouseName")
    private String fWarehousename;

    @JsonProperty("F_AuditMark")
    private  String fAuditmarkName;

    private Integer fAuditmark;
    public String getfAuditmarkName() {
        String statusName=null;
        if(!StringUtil.isEmpty(this.fAuditmark))
        {
            switch (this.fAuditmark)
            {
                case 1:statusName="待审核";break;
                case 2:statusName="已审核";break;
            }
        }
        return statusName;
    }

    @JsonProperty("F_InventoryId")
    private String fInventoryid;

    @JsonProperty("F_GoodsId")
    private String fGoodsid;

    @JsonProperty("F_GoodsName")
    private String fGoodsname;

    @JsonProperty("F_GoodCode")
    private String fGoodcode;

    @JsonProperty("F_BasicAmount")
    private BigDecimal fBasicamount;

    @JsonProperty("F_ComAmount")
    private BigDecimal fComamount;

    @JsonProperty("F_Quantity")
    private BigDecimal fQuantity;

    @JsonProperty("F_BasicDiff")
    private BigDecimal fBasicdiff;

    @JsonProperty("F_ComDiff")
    private BigDecimal fComdiff;

    @JsonProperty("F_StockId")
    private String fStockid;


}
